﻿using GalaSoft.MvvmLight;

namespace DeploymentTool.Model
{
    public class DepSearchPattern : ViewModelBase
    {
        //public bool UseRegularExpression { get; set; }
        //public string SearchPattern { get; set; }

        public const string EnablePropertyName = "Enable";
        private bool _enable = false;
        public bool Enable
        {
            get
            {
                return _enable;
            }

            set
            {
                if (_enable == value)
                {
                    return;
                }

                RaisePropertyChanging(EnablePropertyName);
                _enable = value;
                RaisePropertyChanged(EnablePropertyName);
            }
        }

        public const string UseRegularExpressionPropertyName = "UseRegularExpression";
        private bool _useRegularExpression = false;
        public bool UseRegularExpression
        {
            get
            {
                return _useRegularExpression;
            }

            set
            {
                if (_useRegularExpression == value)
                {
                    return;
                }

                RaisePropertyChanging(UseRegularExpressionPropertyName);
                _useRegularExpression = value;
                RaisePropertyChanged(UseRegularExpressionPropertyName);
            }
        }

        public const string SearchPatternPropertyName = "SearchPattern";
        private string _searchPattern;
        public string SearchPattern
        {
            get
            {
                return _searchPattern;
            }

            set
            {
                if (_searchPattern == value)
                {
                    return;
                }

                RaisePropertyChanging(SearchPatternPropertyName);
                _searchPattern = value;
                RaisePropertyChanged(SearchPatternPropertyName);
            }
        }
    }
}
